Skip to content

Fix #610: Chat x402 template#732

Open
a4to wants to merge 1 commit intoMerit-Systems:masterfrom
a4to:bounty/issue-610
Open

Fix #610: Chat x402 template#732
a4to wants to merge 1 commit intoMerit-Systems:masterfrom
a4to:bounty/issue-610

Conversation

@a4to
Copy link

@a4to a4to commented Mar 4, 2026

Summary

This PR resolves #610.

Changes

Added a new next-402-chat template under templates/ that reuses the simple next-chat UI and adds a payment/auth switcher for Echo credits vs USDC via x402, wired client/server payment flows, and registered the template in echo-start and templates docs.

Files Modified

  • packages/sdk/echo-start/src/index.ts
  • templates/README.md
  • templates/next-402-chat/.env.local
  • templates/next-402-chat/README.md
  • templates/next-402-chat/package.json
  • templates/next-402-chat/src/providers.tsx
  • templates/next-402-chat/src/app/layout.tsx
  • templates/next-402-chat/src/app/page.tsx
  • templates/next-402-chat/src/app/_components/header.tsx
  • templates/next-402-chat/src/app/_components/chat.tsx
  • templates/next-402-chat/src/app/api/chat/route.ts
  • templates/next-402-chat/src/components/wallet/auth-guard.tsx
  • templates/next-402-chat/src/components/wallet/config.ts
  • templates/next-402-chat/src/components/wallet/connect-button.tsx
  • templates/next-402-chat/src/components/wallet/header-account.tsx
  • templates/next-402-chat/src/components/wallet/index.ts
  • templates/next-402-chat/src/components/wallet/payment-mode.tsx
  • templates/next-402-chat/src/components/wallet/wallet-provider.tsx
  • templates/next-402-chat/public
  • templates/next-402-chat/src/components
  • templates/next-402-chat/src/app/api/echo/[...echo]/route.ts
  • templates/next-402-chat/src/echo/index.ts
  • templates/next-402-chat/src/lib
  • templates/next-402-chat/components.json
  • templates/next-402-chat/eslint.config.mjs
  • templates/next-402-chat/next.config.ts
  • templates/next-402-chat/postcss.config.mjs
  • templates/next-402-chat/tsconfig.json
  • templates/next-402-chat/.gitignore

Happy to address any feedback or make adjustments.

/claim #610

Added a new next-402-chat template under templates/ that reuses the simple next-chat UI and adds a payment/auth switcher for Echo credits vs USDC via x402, wired client/server payment flows, and regis
@vercel
Copy link
Contributor

vercel bot commented Mar 4, 2026

@a4to is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat x402 template

1 participant